#ifndef  __SPI_H
#define  __SPI_H
#include "stm32f4xx.h"


void spi_init(void);
uint8_t flash_Read_ID(void);
void spi_flash_Write_Enable(void);
void spi_flash_Erase_Sector(uint32_t addr);
void spi_flash_read_buff(uint32_t addr,uint8_t *buf,uint32_t size);
void spi_flash_Page_Write(uint32_t addr,uint8_t *buf,uint32_t size);
void spi_flash_Write_Buff(uint32_t addr,uint8_t *buf,uint32_t size);

#endif
